<?php

class ModuleEditorHelper extends AppHelper
{
	var $name = "ModuleEditor";
	
	function beforeRender()
	{
		$view = ClassRegistry::getObject('View');
		//prd($view);
		$view->addScript('moduleEditor', '<link rel="stylesheet" type="text/css" href="'.Helper::url('/modules/css/module.css').'" />');
		$this->addJUI();
		$view->addScript('moduleEditorJs','<script src="' . Helper::url('/modules/js/editor.js') . '"></script>');
		$view->addScript('jsScroll','<script src="' . Helper::url('/cms/js/jquery.scrollTo.js') . '"></script>');		
	}

}

?>
